<%= form_for(@user) do |f| %>
    <% if @user.errors.any? %>
        <div class="fberrorbox" id="error_explanation">
          <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

          <ul>
            <% @user.errors.full_messages.each do |msg| %>
                <li><%= msg %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="fbblueboxlite">
      <div class="fbgreybox"><h2>Change password</h2></div>
      <table>
        <tr>
          <td>
            <b>Role:</b><br />
            <% if @user.role == "camt"%>
                CAMT
            <% else %>
                <%= @user.role.humanize %>
            <% end %>
          </td>
        </tr>
        <tr>
          <td>
            <div class="field">
              <b>New password</b><br />
              <%= f.password_field :password, :size => 50 %>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="field">
              <b>Confirm new password</b><br />
              <%= f.password_field :password_confirmation, :size => 50 %>
            </div>
          </td>
        </tr>
      </table>

    </div>
    <br />

    <div class="fbgreyboxbuttom">
      <div class="actions">
        <%= f.submit %>
      </div>
    </div><br />
<% end %>
